package com.woniu.guoguo.service.impl;

import com.woniu.guoguo.model.MenuImg;
import com.woniu.guoguo.dao.MenuImgMapper;
import com.woniu.guoguo.controller.component.MenuInfo;
import com.woniu.guoguo.service.IMenuImgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Richie
 * @since 2020-11-03
 */
@Service
public class MenuImgServiceImpl extends ServiceImpl<MenuImgMapper, MenuImg> implements IMenuImgService {

    @Autowired
    private MenuImgMapper menuImgMapper;

    @Override
    public List<String> findImagesByMenuId(Integer menuId) {
        return menuImgMapper.findImagesByMenuId(menuId);
    }

    @Override
    public List<MenuInfo> queryMenu() {
        List<MenuInfo> menuInfos = menuImgMapper.queryMenu();
        return menuInfos;
    }

}
